const mongoose = require('mongoose')
const Schema  = mongoose.Schema;
const NoticeSchema = new Schema({
    noticeMessage:{
        type:String,
        requuery:true
    },
    date:{
        type:Date,
        default:Date.now()
    },
    orderID:{
        type:mongoose.Schema.Types.ObjectId,
        ref:Order
    },
})
module.exports = Notice = mongoose.model("notice", NoticeSchema)